package com.ssy.lingxi.logistics.api.feign;

import com.ssy.lingxi.common.model.dto.UserLoginCacheDTO;
import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.logistics.api.dto.response.ReceiverAddressDetailResponse;
import com.ssy.lingxi.logistics.api.dto.response.ReceiverAddressResponse;
import com.ssy.lingxi.logistics.api.fallback.ReceiverAddressFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @menu 内部接口 - 收货地址
 * @author yzc
 * @version 2.0.0
 * @date 2020/7/10
 */
@FeignClient(name = "logistics-service", fallback = ReceiverAddressFeignFallback.class)
public interface ReceiverAddressControllerFeign {

    /**
     * 订单转单功能 - 新增收货地址
     * @param id 主键id
     * @return 返回结果
     */
//    @PostMapping(value = "/logistics/receiverAddress/transferOrder/add")
//    Wrapper<ReceiverAddressDetailResponse> addTransferOrder(@RequestParam Long id);

    /**
     * 收货地址查询
     * @param id 主键id
     * @return 返回结果
     */
    @GetMapping(value = "/logistics/receiverAddress/get")
    Wrapper<ReceiverAddressResponse> getReceiverAddress(@RequestParam(name = "id") Long id);


}
